<?php

/**
 * Folder form.
 *
 * @package    sf_portal
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class simpleFolderForm extends BaseFolderForm
{
  public function configure()
  {
  	unset( 
  		$this['created_at'],  
  		$this['tree_left'],
  		$this['tree_right'],
  		$this['tree_parent'],
  		$this['alias'],
  		$this['count'],
  		$this['scope'],
  		$this['mat2_folder_list']	
  		);
  	
  		
  		$this->setWidgets(array(
      'id'               => new sfWidgetFormInputHidden(),
      'name' =>  new sfWidgetFormInput(array(),array('style'=>'width:50px')),
  	
    ));
  		
  		
  		$this->widgetSchema->setLabels(array(  
		'name'    => 'Наименование',  
		'description'   => 'Описание',  
  	     ));
  	     
  	     $this->validatorSchema->setOption('allow_extra_fields', true);
  		 $this->widgetSchema->setNameFormat('folder[%s]');
  		
  }
}
